package com.shyb.lingxian.Util;

import com.shyb.lingxian.MainApplication;

/**
 * Created by gs on 2018/3/23.
 */

public class CommonUtils {
    public static void runOnUIThread(Runnable runnable){
        MainApplication.getMainHandler().post(runnable);
    }

    public static float getDimens(int resId){
        return MainApplication.getContext().getResources().getDimension(resId);
    }

    public static String getString(int resId){
        return MainApplication.getContext().getResources().getString(resId);
    }
}
